Script: --on windowEvent wdID,wdName,objNo,objName,objValue¬¬Global selectedTitles, printListIssueNums, selectedTitlesIndex¬Global titlesCardNumList¬global gWindowPositions¬¬---------------------¬-- This is window #14¬---------------------¬¬if objValue="Open" then ¬ -- Restore old window position¬ put OldWindowPosition(14) into windowRect¬ if windowRect = empty then centerWindow wdName¬ else wsSet wdID,"0","Rect",windowRect¬ ¬ -- Clear out the print list¬ put empty into printListIssueNums -- the list of issue indexes¬ put empty into titlesCardNumList -- list of card numbers corresponding to the issues¬ put empty into selectedTitlesIndex¬ ¬ get "PrintList_Text:" & return¬ wsSet wdId,"Properties",it¬ ¬else if objValue="Close" then ¬ -- save the window position¬ put "14" & tab & wdName & tab & wsGet(wdID,"0","Rect") into line 14 of gWindowPositions¬ ¬else if objValue="Suspend" then ¬ ¬else if objValue="Resume" then ¬ ¬else if objValue="CloseBox" then ¬ ¬else if objValue="ZoomBox" then ¬ ¬else if objValue="GrowBox" then ¬ ¬else if objValue="TitleBar" then ¬ ¬end if¬¬--end windowEvent¬¬
Result: i3_TextOfSelection¬i15_Text
ItemType: PUSH
Rect: 330,126,410,146
AutoSize: FALSE
Disabled: TRUE
Name: OK
AutoClose: TRUE
Balloon: Click here to save your save the list of comics to be printed.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global gPrintList¬put wsGet(wdID,"PrintList","Text") into gPrintList¬--end mouseUp¬¬¬¬¬¬¬
ItemType: PUSH
Rect: 330,153,410,173
AutoSize: FALSE
Name: Cancel
CancelItem: TRUE
AutoClose: TRUE
Balloon: Click here to exit without saving the list of comics to be printed.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬¬Global selectedTitles, printListIssueNums, selectedTitlesIndex¬Global titlesCardNumList¬¬-- Clear out the print list¬put empty into printListIssueNums -- the list of issue indexes¬put empty into titlesCardNumList -- list of card numbers corresponding to the issues¬put empty into selectedTitlesIndex¬--end mouseUp¬
ItemType: TEXT
Rect: 14,5,119,21
WhiteColor: -8739,-8739,-8739
Text: Issues to print:
ItemType: TEXT
Rect: 241,106,306,123
TextFont: Geneva
TextSize: 10
AutoSize: FALSE
Visible: FALSE
Name: ModifyDate
LockText: FALSE
Text: 7/21/92
Script: --on closeField wdID,wdName,objNo,objName,objValue¬get objValue¬convert it to date¬if the result <> empty then put empty into it¬wsSet wdID,objNo,"Text",it¬--end closeField
ItemType: LIST
Rect: 11,25,308,274
TextFont: Geneva
TextSize: 10
Name: PrintList
Style: ListWithTabs...
StyleInfo: ................................<
KeyScroll: TRUE
Text:
Balloon: This is the list of the issues (and # of copies) you are about to print.
Balloon: Click here to add issues to the list to be printed.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬send AddToPrintList to cd btn "AddToPrintList" of cd 3¬--end mouseUp¬
ItemType: PUSH
Rect: 330,61,410,81
AutoSize: FALSE
Disabled: TRUE
Name: Remove
Balloon: Select an issue from the list to the left, then click here to remove it from the list of issues to be printed.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬send RemoveFromPrintList to cd 1 of bg "Title"¬--end mouseUp
ItemType: PUSH
Rect: 330,88,410,108
AutoSize: FALSE
Disabled: TRUE
Name: Copies…
Balloon: Click here to set the number of copies of to be printed for the selected issue. ¬¬Usually, this is set to the number of copies you have in stock for the selected issue.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬--EditCopies¬put wsGet("Issue Selection","PrintList","Selection") into theSelection¬put wsGet("Issue Selection","PrintList","Text") into previousPrintList¬¬repeat with x = 1 to (the number of items of theSelection)¬ put line (item X of theSelection) of previousPrintList into theIssue¬ set the itemDelimiter to tab¬ put last item of theIssue into numCopies¬ put item 1 of theIssue into issueName¬ delete last item of theIssue¬ set the itemDelimiter to comma¬ Get WindowScript("Copies",numCopies,issueName)¬ if it = empty then exit repeat¬ else¬ put line 2 of it into it¬ if it > 0 then¬ put it into numCopies¬ put theIssue & tab & numCopies into line (item X of theSelection) of previousPrintList¬ end if¬ end if¬end repeat¬¬wsSet "Issue Selection","PrintList","Text", previousPrintList¬wsSet "Issue Selection","PrintList","Selection", theSelection¬wsSend "Issue Selection","0","BringToFront"¬wsSend "Issue Selection","0","DoUpdate"¬--end mouseUp¬